package cn.kgc.yigou.service;

import cn.kgc.yigou.mapper.ShopMapper;
import cn.kgc.yigou.pojo.Shop;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.annotation.Resource;
import java.util.List;

@Service("shopService")
public class ShopServiceImpl implements ShopService {
    @Resource
    ShopMapper shopMapper;
    @Override
    public int save(Shop shop) {
        int insert=shopMapper.insert(shop);
        return insert;
    }

    @Override
    public PageInfo<Shop> queryForKeywordWithPage(Integer pageNum, Integer pageSize, String keyword) {
        PageHelper.startPage(pageNum,pageSize);
        return null;
    }

    @Override
    public List<Shop> getShopListByIdList(List<Integer> shopIdList) {
        return null;
    }

    @Override
    public Shop selectAllById(int id) {
        return null;
    }

    @Override
    public void batchRemove(List<Integer> shopIdList) {

    }

    @Override
    public void updateShop(Shop shop) {

    }
}
